<!-- LATEST_FRONTPAGE.TPL -->
<!-- POR DJ -->
<div style="clear:both;height: 120px;"></div>
<div style="clear:both;">
{if $servicios}
<div class="titulo">
{else}
<div class="titulo_largo">
{/if}	
		<h3>{$smarty.const.DESTACADOS}</h3>
</div>
{if ! $servicios}
<table cellspacing="0" class="box ads-table" style="clear:both;">
<tr style="">
	<th width="">{$smarty.const.PICTURE_TEXT}</th>
	<th width="30%">{$CATEGORY_URL} {$smarty.const.CATEGORY}</a> {$image_cat}</th>
	{*<th width="300">{$AD_URL} {$smarty.const.TITLE}</a> {$image_title}</th>*}
	<th width="300">{$MARCA_URL} {$smarty.const.BRAND}</a> {$image_brand}</th>
	<th width="300">{$MODELO_URL} {$smarty.const.MODEL}</a> {$image_model}</th>
	<th width="300">{$TIPO_URL} {$smarty.const.LA_TYPE}</a> {$image_tipo}</th>
	<th width="300">{$ANIO_URL} {$smarty.const.ANIO}</a> {$image_anio}</th>
	{*<th width="300">{$POTENCIA_URL} {$smarty.const.POWER}</a> {$image_power}</th>
	<th width="300">{$HSKMS_URL} {$smarty.const.HSKMS}</a> {$image_hskms}</th>
	*}
	<th width="300">{$UBICACION_URL} {$smarty.const.UBICA}</a> {$image_ubicacion}</th>
	{*<th width="300">{$smarty.const.DESCRIPTION}</a></th>*}
	{*
	{foreach item=extra from=$EXTRA_CAPTION_ARRAY} 
		<th>{$extra.url}{$extra.caption|truncate:15:"...":true}</a> {$extra.sort_img}</th>
	{/foreach}
	*}
	{*
	<th width="10%">{$DATE_URL} {$smarty.const.DATE_ADDED}</a> {$image_date}</th>
	<th width="10%">{$EXPIREDATE_URL} {$smarty.const.LA_AD_EXPIRE}</a> {$image_expire}</th>
	<th width="20%">{$GRADE_URL} {$smarty.const.LA_GRADE}</a> {$image_grade}</th>
	*}
	<th width="">{$PRECIO_URL}Precio</a> {$image_precio}</th>	
</tr>			  

{foreach item=ad from=$ads}  
<tr class="{cycle values=",alt"}">
<td>{$ad.IMAGEYESNO}</td>
<td>{if $ad.SPECIAL}<b>{/if}{$ad.CATEGORYNAME}{if $ad.SPECIAL}</b>{/if}</td>{* class="category"*}
{*<td class="pointer"><a href="{$ad.LINK}" title="{$ad.TITLE|escape}">
{if $ad.SPECIAL}<b>{/if}{$ad.TITLE|truncate:50:"...":true}{if $ad.SPECIAL}</b>{/if}</a>
<br /><span style="font-size: 9pt; color:#666666">{$ad.CATEGORYNAME}</span>
</td>*}
<td>{if $ad.SPECIAL}<b>{/if}{$ad.MARCA}{if $ad.SPECIAL}</b>{/if}&nbsp;</td>
<td>{if $ad.SPECIAL}<b>{/if}{$ad.MODELO}{if $ad.SPECIAL}</b>{/if}&nbsp;</td>
<td>	{if $ad.SPECIAL}<b>{/if}
		{if $ad.cat_grandfatherid == $smarty.const.ID_CAT_COMPRA}
			{$smarty.const.OPERACION_VENTA}
		{else}
			{$smarty.const.OPERACION_ALQUILER}
		{/if}
		{if $ad.SPECIAL}</b>{/if}&nbsp;
</td>
<td>{if $ad.SPECIAL}<b>{/if}{$ad.ANIO}{if $ad.SPECIAL}</b>{/if}&nbsp;</td>
{*
<td>{if $ad.SPECIAL}<b>{/if}{$ad.POTENCIA}{if $ad.SPECIAL}</b>{/if}&nbsp;</td>
<td>{if $ad.SPECIAL}<b>{/if}{$ad.HSKMS}{if $ad.SPECIAL}</b>{/if}&nbsp;</td>
*}
<td>{if $ad.SPECIAL}<b>{/if}{$ad.PROVINCIA}{if $ad.SPECIAL}</b>{/if}&nbsp;</td>
{*<td class="pointer">
{if $ad.SPECIAL}<b>{/if}{$ad.DESCRIPTION|truncate:100:"...":true|strip_tags:""}{if $ad.SPECIAL}</b>{/if}
</td>*}
{*
{foreach item=extraval from=$ad.EXTRA_VALUES} 
		<td>{$extraval|truncate:20:"...":true}&nbsp; </td>
{/foreach}

<td>{$ad.REGDATE}</td>
<td>{$ad.EXPIREDATE}</td>
<td>{$ad.GRADE}</td> *}
<td align="right"><small>{$ad.MONEDA}</small>&nbsp;{$ad.PRECIO}&nbsp; </td>
<!--
<td>{$ad.e_1.value|truncate:10:"...":true}</td></tr>
-->
</tr>
{/foreach} 

</table>

{else}
{* Esta seccion muestra un tipo de listado diferente, especial para servicios *}
<table cellspacing="0" class="box ads-table" style="clear:both;">
<tr style="">
	<th width="20%">{$CATEGORY_URL} {$smarty.const.CATEGORY}</a> {$image_cat}</th>
	<th width="20%">{$UBICACION_URL}{$smarty.const.EF_UBICACION}</a> {$image_ubicacion}</th>
	<th width="300">{$smarty.const.DESCRIPTION}</th>
	{*<th width="300">{$smarty.const.DESCRIPTION}</a></th>*}
	{*
	{foreach item=extra from=$EXTRA_CAPTION_ARRAY} 
		<th>{$extra.url}{$extra.caption|truncate:15:"...":true}</a> {$extra.sort_img}</th>
	{/foreach}
	*}
	{*
	<th width="10%">{$DATE_URL} {$smarty.const.DATE_ADDED}</a> {$image_date}</th>
	<th width="10%">{$EXPIREDATE_URL} {$smarty.const.LA_AD_EXPIRE}</a> {$image_expire}</th>
	<th width="20%">{$GRADE_URL} {$smarty.const.LA_GRADE}</a> {$image_grade}</th>
	*}
	{*<th width="">{$PRECIO_URL}Precio</a> {$image_precio}</th>
	<th width="">{$PICTURE_URL} {$smarty.const.PICTURE_TEXT}</a> {$image_picture}</th>*}
</tr>			  

{foreach item=ad from=$ads}  
<tr class="{cycle values=",alt"}">
 <td class="">{$ad.CATEGORYNAME}&nbsp;</td> 
 <td class="">{$ad.PROVINCIA}&nbsp;</td>
 <td class="">
 	<div class="listar_servicios">
 		<table cellspacing="0" class="" style="clear:both;" width="100%" >
 		<tr rowspan="2">	
 			<td colspan="2">{$ad.IMAGEYESNO}</td> 			
 			<td colspan="2">
 			<a href="{$ad.LINK}" title="{$ad.TITLE|escape}">
				{if $ad.SPECIAL}<b>{/if}{$ad.TITLE|truncate:50:"...":true}{if $ad.SPECIAL}</b>{/if}</a>
			<br/>
 				 {$smarty.const.LA_PRICE}&nbsp;<small>{$ad.MONEDA}</small>&nbsp;{$ad.PRECIO}		
 			&nbsp;</td> 			
 		</tr> 		
 		<tr></tr>
 		<tr>
 			<td colspan="4">
 			{if $ad.SPECIAL}<b>{/if}{$ad.DESCRIPTION|truncate:100:"...":true|strip_tags:""}{if $ad.SPECIAL}</b>{/if}
 			&nbsp;</td>
 		</tr>	
	 </table>
	</div>
</td>

{/foreach} 

</tr>

</table>
{/if}

{if $prev_url} 
	<a href="{$prev_url}" class="button nextPrev">&lt; {$smarty.const.PREVIOUS_ADS} {$NUM_PER_PAGE}</a> 
{else}{/if}


{if $next_url}	
	<a href="{$next_url}" class="button nextPrev">{$smarty.const.NEXT_ADS} {$NUM_PER_PAGE} &gt;</a> 
{else}{/if}
</div>
<!-- // LATEST_FRONTPAGE.TPL -->